import request from '@/utils/request'

// 查询房型信息列表
export function listRoom_type(query) {
  return request({
    url: '/businessInfo/room_type/list',
    method: 'get',
    params: query
  })
}

// 查询房型信息详细
export function getRoom_type(roomTypeId) {
  return request({
    url: '/businessInfo/room_type/' + roomTypeId,
    method: 'get'
  })
}

// 新增房型信息
export function addRoom_type(data) {
  return request({
    url: '/businessInfo/room_type',
    method: 'post',
    data: data
  })
}

// 修改房型信息
export function updateRoom_type(data) {
  return request({
    url: '/businessInfo/room_type',
    method: 'put',
    data: data
  })
}

// 删除房型信息
export function delRoom_type(roomTypeId) {
  return request({
    url: '/businessInfo/room_type/' + roomTypeId,
    method: 'delete'
  })
}
